using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Hsp.WebNovels.Model.Models
{
    /// <summary>
    /// 小说站点信息数据实体
    /// </summary>
    [Table("WebSites")]
    [SugarTable("WebSites")]
    public partial class WebSite
    {
        /// <summary>
        /// 站点ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey=true)]
        public string? Id { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        [DisplayName("站点名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 站点地址
        /// </summary>
        [DisplayName("站点地址")]
        public string? WebUrl { get; set; }

        /// <summary>
        /// 地址对象
        /// </summary>
        [DisplayName("地址对象")]
        public string? AddressObject { get; set; }

        /// <summary>
        /// 下一页地址对象
        /// </summary>
        [DisplayName("下一页地址")]
        public string? AddressNext { get; set; }

        /// <summary>
        /// 内容对象
        /// </summary>
        [DisplayName("内容对象")]
        public string? ContentObject { get; set; }

        /// <summary>
        /// 下一页内容对象
        /// </summary>
        [DisplayName("下一页内容")]
        public string? ContentNext { get; set; }

        /// <summary>
        /// 站点编码
        /// </summary>
        [DisplayName("站点编码")]
        [StringLength(10)]
        public string? Encoding { get; set; }

        /// <summary>
        /// 地址是否需要组合：0-不需要；1-网站地址 + 章节地址；2-小说地址 + 章节地址；
        /// </summary>
        [DisplayName("地址组合")]
        public int? UrlCombine { get; set; }

        /// <summary>
        /// 正文类型：0-文本；1-HTML；
        /// </summary>
        [DisplayName("正文类型")]
        public int? AnnotationType { get; set; }

        /// <summary>
        /// 是否有效：0-否；1-是；
        /// </summary>
        [DisplayName("是否有效")]
        public int? Valid { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DisplayName("添加时间")]
        [DataType(DataType.DateTime)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DisplayName("更新时间")]
        [DataType(DataType.DateTime)]
        public DateTime? UpdateTime { get; set; }

 
    }
}
